/**
 * Created by Administrator on 2015/12/6.
 */
var mongodb = require('mongodb');
var ObjectID = mongodb.ObjectID;
var MongoClient = mongodb.MongoClient;
var assert = require('assert');
var Q = require('q');
var url = 'mongodb://localhost:27017/mydb';

function getConnection(){
    var p = MongoClient.connect(url,{promiseLibrary: Q.promise});
    return p;
}
exports.getConnection = getConnection;